﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ESOL.Common.Entity;

namespace ESOL.WinUI.Hr
{
    public partial class frmPrintFormCarRenting : BaseForm.frmBaseDialogyForm
    {
        private List<HrCarRentingEntity> mListCarRenting;
        public frmPrintFormCarRenting(List<HrCarRentingEntity> list)
        {
            InitializeComponent();
            mListCarRenting = list;
        }

        protected override void OnShown(EventArgs e)
        {
            frmPrintTemplateCarRenting fXtraReport = new frmPrintTemplateCarRenting(mListCarRenting);
            printControl1.PrintingSystem = fXtraReport.PrintingSystem;
            fXtraReport.CreateDocument();
        }
    }
}
